import { createApp } from 'vue';

import TDesign from 'tdesign-vue-next';
// 全局注册 t-icon 组件
import { Icon } from 'tdesign-icons-vue-next';
// 引入组件库的少量全局样式变量
import 'tdesign-vue-next/es/style/index.css';

import { store } from './store';
import router from './router';
import '@/style/index.less';
import './permission';
import App from './App.vue';


//elementPlus组件引入
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
//全局引入elementPlus的icon图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);

app.use(TDesign);
app.use(router);
app.use(store);
app.use(ElementPlus)
// 全局注册 t-icon 组件
app.component('TIcon', Icon)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 定义一个全局高度多tabs和非多tabs的
app.config.globalProperties.$tableHeight = '68vh';
app.mount('#app');



